







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Gets a string representation of the mappings in a dictionary.
The string representation starts with "{", has a list of mappings separated
by commas (", "), and ends with "}". Each mapping is represented
by "key->value". Each key and value in the dictionary is
converted to a string by calling its ToString method (null is represented by "null").
Contained collections (except strings) are recursively converted to strings by this method.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public static string ToString<TKey, TValue>( IDictionary<TKey, TValue> dictionary ) |
Visual Basic (Declaration) |
---|
Public Shared Function ToString(Of TKey, TValue) ( _ dictionary As IDictionary(Of TKey, TValue) _ ) As String |
Visual C++ |
---|
public: generic<typename TKey, typename TValue> static String^ ToString ( IDictionary<TKey, TValue>^ dictionary ) |
Parameters
- dictionary
- IDictionary<(Of <TKey, TValue>)>
A dictionary to get the string representation of.
Return Value
The string representation of the collection, or "null" if dictionary is null.
Type Parameters
- TKey
- TValue
See Also
Algorithms Class
Wintellect.PowerCollections Namespace